package cn.iocoder.yudao.module.wine.controller.app.membertype.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 会员类型信息新增/修改 Request VO")
@Data
public class AppMemberTypeSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27999")
    private Long id;

    @Schema(description = "类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "类型名称")
    private String name;

    @Schema(description = "会员权益", requiredMode = Schema.RequiredMode.REQUIRED, example = "会员权益")
    @NotEmpty(message = "会员权益不能为空")
    private String equities;

    @Schema(description = "类型图标", requiredMode = Schema.RequiredMode.REQUIRED, example = "图标")
    @NotEmpty(message = "类型图标")
    private String icon;

    @Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "8150")
    @NotNull(message = "价格不能为空")
    private BigDecimal price;

    @Schema(description = "原价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "8150")
    @NotNull(message = "原价格不能为空")
    private BigDecimal originalPrice;

    @Schema(description = "期限类型  1月 2季 3半年 4年", requiredMode = Schema.RequiredMode.REQUIRED, example = "8150")
    @ExcelProperty("期限类型  1月 2季 3半年 4年")
    private Integer termType;

    /**
     * 给商家团长的佣金比例
     */
    @Schema(description = "给商家团长的佣金比例", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("给商家团长的佣金比例")
    private BigDecimal bussCommissionRate;
    /**
     * 给个人团长的佣金比例
     */
    @Schema(description = "给个人团长的佣金比例", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("给个人团长的佣金比例")
    private BigDecimal teamCommissionRate;
}
